import request from '@/utils/request'
import qs from 'qs';

// 查询【请填写功能名称】列表
export function listSetting(params) {
  return request({
    url: '/message/m/smssetting/queryPageList',
    method: 'get',
    params
  })
}
// 查询【请填写功能名称】详细
export function getSetting(params) {
  return request({
    url: '/message/m/smssetting/queryList',
    method: 'get',
    params
  })
}

// 编辑【请填写功能名称】
export function updateSetting(data) {
  return request({
    url: '/message/m/smssetting/update',
    method: 'post',
    headers: {
      "Content-Type": 'application/x-www-form-urlencoded;charset=UTF-8'
    },
    data: qs.stringify(data)
  })
}
// 启用停用服务器
export function setMsgStatus(data) {
  return request({
    url: '/message/m/smssetting/updateSmsStatus',
    method: 'post',
    headers: {
      "Content-Type": 'application/x-www-form-urlencoded;charset=UTF-8'
    },
    data: qs.stringify(data)
  })
}

// 删除
export function testSendSmsMessage(data) {
  return request({
    url: '/message/m/smssetting/testSendSmsMessage',
    method: 'post',
    headers: {
      "Content-Type": 'application/x-www-form-urlencoded;charset=UTF-8'
    },
    data: qs.stringify(data)
  })
}

